package org.onvivals.common.enums;

import lombok.Getter;

/**
 * 状态枚举类型
 */
@Getter
public enum ResultCode {

    SUCCESS(200, "操作成功"),
    FAILED(500, "操作失败"),
    NO_AUTH(403, "无权限访问"),
    VALIDATION_ERROR(400, "参数验证失败"),
    NOT_FOUND(404, "资源未找到");

    private final int code;
    private final String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
